package com.koicarp.university.graduate.service.service.report;

import com.baomidou.mybatisplus.extension.service.IService;
import com.koicarp.university.graduate.service.entity.report.SchoolReport;
import com.koicarp.university.graduate.service.vo.dataCompare.EmployRateVo;
import com.koicarp.university.graduate.service.vo.wx.ReportSchoolVo;
import com.koicarp.university.graudate.common.utils.UniversityResponse;

import java.util.List;

/**
 * 【问卷管理：学校相关问卷表】(SchoolReport)表服务接口
 *
 * @author liutao
 * @since 2020-11-27 19:26:02
 */
public interface ISchoolReportService extends IService<SchoolReport> {

    UniversityResponse getFiveYear();

    UniversityResponse getLeanByNowYear();

    UniversityResponse countStudyByYear(EmployRateVo employRateVo);

    UniversityResponse countActivityByYear(EmployRateVo employRateVo);

    UniversityResponse countClassByYear(EmployRateVo employRateVo);

    UniversityResponse countLeanByYear(EmployRateVo employRateVo);

    UniversityResponse saveReportSchoolInfo(ReportSchoolVo reportSchoolVo);
    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    SchoolReport queryById(Integer id);

    /**
     * 查询多条数据
     *
     * @param offset 查询起始位置
     * @param limit  查询条数
     * @return 对象列表
     */
    List<SchoolReport> queryAllByLimit(int offset, int limit);

    /**
     * 新增数据
     *
     * @param schoolReport 实例对象
     * @return 实例对象
     */
    SchoolReport insert(SchoolReport schoolReport);

    /**
     * 修改数据
     *
     * @param schoolReport 实例对象
     * @return 实例对象
     */
    SchoolReport update(SchoolReport schoolReport);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);

}